package com.zytj.rs.dao;



import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.zytj.rs.model.Member;

@Transactional
public interface IMemberDao extends JpaRepository<Member, Integer>,JpaSpecificationExecutor<Member> {

	

	/**
	 * @param id 修改会员状态
	 * 
	 */
    @Modifying
    @Query("update Member m set m.status='0' where m.id=?1")
	int UpdateStatus(int id);
	

	
}
